//
//  DeviceItem.h
//  xychain_DM_iOS
//
//  Created by Jpwang on 2018/5/26.
//  Copyright © 2018年 Jpwang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RomUpgradePlan : MTLModel <MTLJSONSerializing>
@property(strong, nonatomic) NSString *changeLog;
@property(strong, nonatomic) NSString *version;
@end

@interface Clinets : MTLModel <MTLJSONSerializing>
@property(strong, nonatomic) NSString *ip;
@property(strong, nonatomic) NSString *mac;
@end


@interface Disks : MTLModel <MTLJSONSerializing>
@property(strong, nonatomic) NSString *diskId;
@property(strong, nonatomic) NSNumber *storage;
@property(strong, nonatomic) NSNumber *storageUsed;
@property(strong, nonatomic) NSNumber *status;
@property(strong, nonatomic) NSString *statusTips;
@end



@interface DeviceState : MTLModel <MTLJSONSerializing>
@property(strong, nonatomic) NSString *appVersion;               //appVersion
@property(strong, nonatomic) NSNumber *upSpeed;         //上行速率 Mb/s
@property(strong, nonatomic) NSNumber *upMaxSpeed;     //上行最高速率Mb/s
@property(strong, nonatomic) NSNumber *downSpeed;       //下行速率Mb/s
@property(strong, nonatomic) NSNumber *downMaxSpeed;   //下行最高速率Mb/s
@property(strong, nonatomic) NSString *ip;               //内网IP
@property(strong, nonatomic) NSString *macAddr;
@property(strong, nonatomic) NSNumber *cpuLoad;         //90%
@property(strong, nonatomic) NSNumber *memory;         //memory
@property(strong, nonatomic) NSNumber *memoryUsed;         //memoryUsed
@property(strong, nonatomic) NSArray *disks;             //Disks
@property(strong, nonatomic) NSArray *clients;           //clients
@property(strong, nonatomic) NSNumber *miningSwitch;    //挖矿开关（0：关闭，1：开启）
@property(strong, nonatomic) NSNumber *miningState;     //挖矿状态（0：停止，1：工作）
@property(strong, nonatomic) NSString *timestamp;        //当前状态采集时间戳
@property(strong, nonatomic) NSString *romVersion;        //当前状态采集时间戳

@end


@interface DeviceItem : MTLModel <MTLJSONSerializing>
@property(strong, nonatomic) NSNumber *deviceId;
@property(strong, nonatomic) NSString *createTime;
@property(strong, nonatomic) NSString *updateTime;
@property(strong, nonatomic) NSNumber *uid;
@property(strong, nonatomic) NSString *sn;
@property(strong, nonatomic) NSString *mac;
@property(strong, nonatomic) NSString *romVersion;
@property(strong, nonatomic) NSString *deviceType;
@property(strong, nonatomic) NSString *lastOnlineTime;
@property(strong, nonatomic) NSNumber *firstOnline;
@property(strong, nonatomic) DeviceState *deviceState;
@property(strong, nonatomic) NSString *label;
@property(strong, nonatomic) NSNumber *deviceOnlineState;
@property(strong, nonatomic) RomUpgradePlan *romUpgradePlan;
@end





